<template>
	<view>
		<ShopList :keyword='keyword' />
	</view>
</template>

<script>
	import ShopList from '@/components/common/ShopList.vue'
	export default {
		data() {
			return {
				keyword: ""
			}
		},
		methods: {

		},
		components: {
			ShopList
		},
		onLoad(e) {
			this.keyword = e.keyword;
			console.log(this.keyword);
		},
		onReady() {

			// #ifdef APP-PLUS
			var webView = this.$mp.page.$getAppWebview();
			// console.log(webView.setTitleNViewSearchInputText)
			webView.setTitleNViewSearchInputText(this.keyword)
			// #endif

			// #ifdef H5
			var searchInputDom = document.querySelector(".uni-input-input[type=search]");
			var evt = new UIEvent('input', {
				bubbles: false,
				cancelable: false
			});
			searchInputDom.value = this.keyword;
			searchInputDom.dispatchEvent(evt);
			// #endif
		},
	}
</script>

<style>

</style>